import React, {
	Component
} from "react";
import {
	Tabs
} from 'antd';
import PsDetail from './psDetail';
import Orderlist from './orderlist';

const TabPane = Tabs.TabPane;
class AppletOrderList extends Component {
	constructor(props) {
		super(props);
	}

	onChange = (e) => {
		console.log(e);
		window.LayoutTab.tabParam.appkeyType = e;
	}

	render() {
		const content =
			<Tabs type="card" onChange={this.onChange}>
				<TabPane tab="微信订单" key="2">
					<Orderlist onAdd={this.props.onAdd}/>
				</TabPane>
				<TabPane tab="支付宝订单" key="4">
					<Orderlist  onAdd={this.props.onAdd}/>
				</TabPane>
			</Tabs>
		return content
	}
}

export default AppletOrderList;